package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.domain.entity.TrainHomework;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.param.TrainClassUserParam;
import com.example.demo.param.TrainHomeworkParam;

import java.util.List;

/**
* @author DaoJia
* @description 针对表【train_homework(培训系统-作业)】的数据库操作Service
* @createDate 2024-02-04 23:06:21
*/
public interface TrainHomeworkService extends IService<TrainHomework> {

    Page<TrainHomework> queryByParam(TrainHomeworkParam param);

    Page<TrainHomework> queryByHwIdsAndPage(List<Long> homeworkIds, TrainClassUserParam trainClassUserParam);

    List<TrainHomework> queryByIds(List<Long> homeworkIds);

    Page<TrainHomework> getAssignedHomeWorkForClass(TrainClassUserParam param);

    List<TrainHomework> getAllAssignedHomeWorkForClass(Long classId);

    Page<TrainHomework> queryHomeWork(TrainClassUserParam trainClassUserParam);
}
